#define _CRT_SECURE_NO_WARNINGS 1
void mul(int x)
{
	for (int i = 1; i <= x; i++)
	{
		for (int j = i; j <= x; j++)
		{
			printf("%d*%d=%d ", i, j, i * j);
		}
		printf("\n");
	}
}
#include<stdio.h>
int main()
{
	int x = 0;
	scanf("%d", &x);
	mul(x);
	return 0;
}